class Reaction < ActiveRecord::Base
  
  # Validate presence of some fields
  validates_presence_of :user_name
  validates_presence_of :email_address
  validates_presence_of :body
  

  def validate
    # custom validation, always called
    # errors.add_to_base("Missing password") if password.blank?
  end
  
end
